// 消息
import { get, post } from '@/server/http'


// 消息/ 粉丝列表
export const getFanListAPI = (userId) => get(`user/${userId}/Fans/page/1/${userId}`)
// 消息/ 粉丝列表/ 关注/取消关注
export const followFanAPI = (userId, fanId) => get(`user/${userId}/triggerFollow/${fanId}`)

// 消息/ 赞页面 列表
export const followlikeAPI = (userId, page) => get(`user/${userId}/byLike/page/${page}`)
// 消息 / @我的页面列表
export const atMyPageAPI = (userId) => get(`user/${userId}/getAt/page/1`)

// 消息/ 评论列表
export const commentListAPI = (userId, page) => get(`user/${userId}/byComment/page/${page}`)

// 消息/ 聊天列表
export const getChatListAPI = (userId, targetUserId) => get(`user/${userId}/getPrivateLetter/${targetUserId}`)

// 发送消息
export const sendMessageAPI = (userId, targetUserId, data) => post(`user/${userId}/privateLetter/${targetUserId}`, data)
